OBJ:= main.o disjointset.o resolver.o
OBJ_TEST := test.o disjointset.o resolver.o

.PHONY: all problema3 problema3-test clean

all: problema3 problema3-test

problema3: $(OBJ) Makefile
	g++ -o $@ $(OBJ)

problema3-test: $(OBJ_TEST) Makefile
	g++ -o $@ $(OBJ_TEST) -lrt
	
%.o: %.cpp
	g++ -o $@ -c $^

clean:
	rm -rf $(OBJ) $(OBJ_TEST) problema3 problema3-test
